package java_DesignPattern.StructuralPattern.DecoraterPattern;

/**
 * 鸡蛋类
 */
public class Egg extends Decorater {

    public Egg(FastFood fastFood) {
        super(fastFood, 1F, "加一个鸡蛋");
    }

    @Override
    public float calcPrice() {
        return getPrice() + getFastFood().calcPrice();
    }
}
